package com.gz.config;//package com.gz.config;
//
//import com.alipay.easysdk.factory.Factory;
//import com.alipay.easysdk.kernel.Config;
//import lombok.Data;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.PostConstruct;
//
//@Data
//@Component
////@ConfigurationProperties(prefix = "alipay")
//public class AlipayConfig {
//    private String appId;
//    private String appPrivateKey;
//    private String alipayPublicKey;
//    private String notifyUrl;
//
//
//    @PostConstruct
//    public void init() {
//        // 设置参数（全局只需设置一次）
//        Config config = new Config();
//        config.protocol = "https";
//        //沙箱
////        config.gatewayHost = "openapi-sandbox.dl.alipaydev.com";
//        //真实
//        config.gatewayHost = "openapi.alipay.com";
//
//        config.signType = "RSA2";
//        //沙箱
////        config.appId = "9021000123683915";
//        //真实
//        config.appId = "2021004108641476";
//        //应用私钥-沙箱
////        config.merchantPrivateKey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDPuDtjBtm2W/H+2rHgo+eZN0dmq4JXf4MNZCr8iPcsiV9aOjm03b60YhRcCjoMU6ai/SexM1hICSaFmSZloYUkIfXO+ULIfK11yOOfoWH4oJskvibNbeuu8zdEM2Z8d543aaQREBVUWDUwzxaLgADZzB0Cnb8YmjevNK0UoDBp20c1JquDJLVRsBKMB45+b7f+2mAIkaokl+/JFgFg2osQmKbboaa42tXB9IFNzuUQ0wEx+9cOMfguEEgGm/+FEMZ2tuK8f/reZUdb+Eb0j63d3icdjeEXY3E7Jx2RWOnkGKYDQQ71EKDUS8LdXZEqIptZXlJX4zTU2FU+5G0eVnshAgMBAAECggEATszXSqPop7ONxF72p//F9mvwHFToJ4VqFARyAkd7bVvX3oTEK4cLt6aVjq0ahF6fkqlzC1gtH3bJNFl7JYb22VRAyfnpieEydMJ3B7HTVtymvnOciMYwaLg/uRG+yW0fimn7IbX2QX8M/q0xIk63A+jZAIsTWaP3h/H1zyNN+nnULw5DN5m7a5P6a+1FUAA11JI0ML0HJ5plzt+Kq4sTRcxv+9YSl4GU+Kqv6l9twMtfx4loifjpSmCTRIh7ibaF4J/wuu/lq265w/Y1BOK9Z011lgmoKdHVyJUEvWl6l3YJUapIKDudBrjBMYupeX5b+lLMHqOAcBzcURUd/ujegQKBgQDsezUXbC9tFeRCfzskprXZRbggIj1KFUashyMBMB4YAVP787He7GCAMe5leX25eNX/idk9ugS9xE0N2HrCyHuM68qJQGCkDJkHSMxXjftklQEWw3uM0kdUe1K8PDkK9bm6WfYXfaX08dFRG2VJZCHOU5Ffwf0ltxvZ6onekltE+QKBgQDg3UxkztmSul7+5s5rOt5yNQEgi+Pkx5LcEfj/inHfEIHALSwIfOGrGy3JZw3EESZfjfgNNz+LJc4K6ALMj5XI9z9zoTnLt1S2Vlk15vZ0Dqgrj69KyBswjmA9JR5OQDlkDhUYboCCI0nydw/UOyRExJKKFBR8mJr4rw3a2Jn5aQKBgAs7mvz+1Y3f8VS7SGroRFEKv8E+/xxKwG2niaEf0P4g6gVYwQUuwzKzrHhDehZaSAf4W0pUUK9W6LYUp1gjP8Mk3B0C4tRICOjQq2wpQVy4uzGCnZbF0j+QEBEC506+91CDv23EOSLWbbPlkj0XNYfgblJXG5g0B22ld2EMIKu5AoGBAM2fb9ErGehDxsR/GLkTjwCOmaZCZbX6DcByKui6l+Br/spWRFLKp63I37ixJPRq3lU4xGCJafD7NAvjF1Qp5MVt2rcI8onn7m4CTfetaSa9lGipLplKnRpsx3KCc9EIh7KH8iByQ889J8yxtWbUYhkETCA5tnYtMmE/6oJ52WspAoGBAJ+OYZWkD+oSYgS7H2po3XQdRKaKJ00cko/FtBWMHRRw2QnRSL/xFO5jQN2NY2+m6NojktXFl2UHzZhmDe9y3EDTvEGDZa+O9nlZxVZPRRPJnks8vaJ5f7/W0bFcBrx2T4Su8acUEOPQoFBk16exjuj/QweuMpwmER4n4+TIDGUG";
//        //应用私钥-真实
//        config.merchantPrivateKey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCiIituKxFjPZ8FsUDeNmcHc28C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CVb8S56I2t/WeyxaKsI/pBMVwiivDuLoQRKy31q6GVgFpOdNiWZlt7+djUQ2DWixzp6wevc4GMWS9E2N8ldRs69gIUsrzkWayKjE5uJjkP+U6SeLr5pQKBgQCf9u0SKgmcnsGGmHyToua/pFmK81aJVs0q9z5Nt8dVaW4cQmhEDQC1kstbREmcd1/rK1OxFf4nyFNWqNptwYlAyJIAzxRXCVsgrhVp8x0Lz+h8bp9cyBicBhSUTnjfYteb4SJHzpQCsQuaLOCca2YSnDCfZzywIrEPWDxoAB9yFwKBgCP2o4WhUjMaArVuJ75IqXFhTAwR9TZrwpYurDAKTotMe4am/JbgEFb8K4md2tXQrLNEhS1jwDC3vX53iQPyFJU2C4QdS2WRhPqfLPVtC+DwBjm5SQn2Hs/frTSBJSXjYBrnexyu+og1XFfdnnZ4+5TT10PpbOuu/V25+YGUD/kN";
//        //支付宝公钥-沙箱
////        config.alipayPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArGXe39fAJ39WAW8mgq35BU900/CC5DVSPJckqy1Oc6sejy3mY3JX/zURjui5lhIGIl8yRqEowpaMPHdA+/XNBt/OToUyZdPlJeA1+cbtaTCYIGSuwEozX7Ket94T5dQUl7RIHClIk8e6ct95IB5c4PAkhidko0gFH5WHCoM/0iQNzbITLNuNtcNiuP1E76T/x/CB6DBFB979WOpNsg/9SNjaoyVAV0SEJ6w0aE/RFL9B6q4egc5/70Q/C6AOH8jamPR5TcyY/f8QXlBrJwdAneHZee1OVjyRoIabXd7cM1YUfcclOE0zl20M2Xyyw5vvlH1TSU+KR2WB9LaVumb/VQIDAQAB";
//        //支付宝公钥-真实
//        config.alipayPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsunnTBN+LKybVMqu25mctL9UPdAkktRQ6xlVKCTSldUfyY2UlhZFfdzBCFAjTPujvaIdnMOIVPn6boRsddaW68WJtwCK9oDVHvpnLi8k7ikPQ4qwf6L55dHCBoYgDc9+vDO4Tlr/7U2QHHs/y2QV7ByxrBxZUo54edEKnhvyoZH4E5OyhYvTJQgT/TdwrjWqvWi4uJ7YZ6mP5GZfAPHSC9XKNE9gVGd+xa8dWYvD3/m1FD/7ziu/Z2c80SSjD5ZHPQH8hdsXC6AUUDhNg/8gv6ZJj7UD8RK4RpnW9OaSKJ1vppqUT+Nw3BV/gwUjhsu5rO/DimjTcjaQdWM/MZu2pQIDAQAB";
//
//        config.notifyUrl = "http://www.yuebi.online:8087/payNotifyUrl/tradeNotify";
//        Factory.setOptions(config);
//        System.out.println("=======支付宝SDK初始化成功=======");
//    }
//
//}
